package co.com.inventarios.modelo;

import java.sql.Timestamp;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Mngtdc entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "MNGTDC", schema = "MANAGER", uniqueConstraints = {})
public class Mngtdc implements java.io.Serializable {

	// Fields

	private MngtdcId id;
	private Mngclase mngclase;
	private String tdcnombre;
	private Long tdcnumerar;
	private Double tdcnumero;
	private Long tdcexterno;
	private String tdcbodegas;
	private String tdcagrega;
	private String tdcedita;
	private String tdcelimina;
	private String tdcreabre;
	private String tdcconsult;
	private String tdcimprime;
	private String tdcprecata;
	private Long tdcactivo;
	private Timestamp tdclogfec;
	private Dlluser dlluser;

	// Constructors

	/** default constructor */
	public Mngtdc() {
	}

	/** minimal constructor */
	public Mngtdc(MngtdcId id, Mngclase mngclase) {
		this.id = id;
		this.mngclase = mngclase;
	}

	/** full constructor */
	public Mngtdc(MngtdcId id, Mngclase mngclase, String tdcnombre,
			Long tdcnumerar, Double tdcnumero, Long tdcexterno,
			String tdcbodegas, String tdcagrega, String tdcedita,
			String tdcelimina, String tdcreabre, String tdcconsult,
			Dlluser dlluser,Timestamp tdclogfec,
			String tdcimprime, String tdcprecata, Long tdcactivo) {
		this.id = id;
		this.mngclase = mngclase;
		this.tdcnombre = tdcnombre;
		this.tdcnumerar = tdcnumerar;
		this.tdcnumero = tdcnumero;
		this.tdcexterno = tdcexterno;
		this.tdcbodegas = tdcbodegas;
		this.tdcagrega = tdcagrega;
		this.tdclogfec = tdclogfec;
		this.dlluser = dlluser;
		this.tdcedita = tdcedita;
		this.tdcelimina = tdcelimina;
		this.tdcreabre = tdcreabre;
		this.tdcconsult = tdcconsult;
		this.tdcimprime = tdcimprime;
		this.tdcprecata = tdcprecata;
		this.tdcactivo = tdcactivo;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "tdcclase", column = @Column(name = "TDCCLASE", unique = false, nullable = false, insertable = true, updatable = true, length = 4)),
			@AttributeOverride(name = "tdctipo", column = @Column(name = "TDCTIPO", unique = false, nullable = false, insertable = true, updatable = true, length = 4)) })
	public MngtdcId getId() {
		return this.id;
	}

	public void setId(MngtdcId id) {
		this.id = id;
	}

	@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
	@JoinColumn(name = "TDCCLASE", unique = false, nullable = false, insertable = false, updatable = false)
	public Mngclase getMngclase() {
		return this.mngclase;
	}

	public void setMngclase(Mngclase mngclase) {
		this.mngclase = mngclase;
	}

	@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
	@JoinColumn(name = "TDCLOGUSER", unique = false, nullable = true, insertable = true, updatable = true)
	public Dlluser getDlluser() {
		return this.dlluser;
	}

	public void setDlluser(Dlluser dlluser) {
		this.dlluser = dlluser;
	}

	@Column(name = "TDCLOGFEC", unique = false, nullable = true, insertable = true, updatable = true)
	public Timestamp getTdclogfec() {
		return this.tdclogfec;
	}

	public void setTdclogfec(Timestamp tdclogfec) {
		this.tdclogfec = tdclogfec;
	}
	
	@Column(name = "TDCNOMBRE", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public String getTdcnombre() {
		return this.tdcnombre;
	}

	public void setTdcnombre(String tdcnombre) {
		this.tdcnombre = tdcnombre;
	}

	@Column(name = "TDCNUMERAR", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
	public Long getTdcnumerar() {
		return this.tdcnumerar;
	}

	public void setTdcnumerar(Long tdcnumerar) {
		this.tdcnumerar = tdcnumerar;
	}

	@Column(name = "TDCNUMERO", unique = false, nullable = true, insertable = true, updatable = true, precision = 15)
	public Double getTdcnumero() {
		return this.tdcnumero;
	}

	public void setTdcnumero(Double tdcnumero) {
		this.tdcnumero = tdcnumero;
	}

	@Column(name = "TDCEXTERNO", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
	public Long getTdcexterno() {
		return this.tdcexterno;
	}

	public void setTdcexterno(Long tdcexterno) {
		this.tdcexterno = tdcexterno;
	}

	@Column(name = "TDCBODEGAS", unique = false, nullable = true, insertable = true, updatable = true, length = 2000)
	public String getTdcbodegas() {
		return this.tdcbodegas;
	}

	public void setTdcbodegas(String tdcbodegas) {
		this.tdcbodegas = tdcbodegas;
	}

	@Column(name = "TDCAGREGA", unique = false, nullable = true, insertable = true, updatable = true, length = 3000)
	public String getTdcagrega() {
		return this.tdcagrega;
	}

	public void setTdcagrega(String tdcagrega) {
		this.tdcagrega = tdcagrega;
	}

	@Column(name = "TDCEDITA", unique = false, nullable = true, insertable = true, updatable = true, length = 3000)
	public String getTdcedita() {
		return this.tdcedita;
	}

	public void setTdcedita(String tdcedita) {
		this.tdcedita = tdcedita;
	}

	@Column(name = "TDCELIMINA", unique = false, nullable = true, insertable = true, updatable = true, length = 3000)
	public String getTdcelimina() {
		return this.tdcelimina;
	}

	public void setTdcelimina(String tdcelimina) {
		this.tdcelimina = tdcelimina;
	}

	@Column(name = "TDCREABRE", unique = false, nullable = true, insertable = true, updatable = true, length = 3000)
	public String getTdcreabre() {
		return this.tdcreabre;
	}

	public void setTdcreabre(String tdcreabre) {
		this.tdcreabre = tdcreabre;
	}

	@Column(name = "TDCCONSULT", unique = false, nullable = true, insertable = true, updatable = true, length = 3000)
	public String getTdcconsult() {
		return this.tdcconsult;
	}

	public void setTdcconsult(String tdcconsult) {
		this.tdcconsult = tdcconsult;
	}

	@Column(name = "TDCIMPRIME", unique = false, nullable = true, insertable = true, updatable = true, length = 3000)
	public String getTdcimprime() {
		return this.tdcimprime;
	}

	public void setTdcimprime(String tdcimprime) {
		this.tdcimprime = tdcimprime;
	}

	@Column(name = "TDCPRECATA", unique = false, nullable = true, insertable = true, updatable = true, length = 5)
	public String getTdcprecata() {
		return this.tdcprecata;
	}

	public void setTdcprecata(String tdcprecata) {
		this.tdcprecata = tdcprecata;
	}

	@Column(name = "TDCACTIVO", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
	public Long getTdcactivo() {
		return this.tdcactivo;
	}

	public void setTdcactivo(Long tdcactivo) {
		this.tdcactivo = tdcactivo;
	}

}